package com.thinkingstar.iads.cs.sys.shiro.function;

import org.beetl.core.Context;
import org.beetl.core.Function;


public class HelloWorld  implements Function {

    @Override
    public Object call(Object[] objs, Context ctx) {
        Object o = objs[0];
        if (o != null) {
            try {

                String s = "hello ketty:";
                s+=o.toString();
                ctx.byteWriter.write(s.getBytes());
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return null;
    }
}
